/**
 *
 */
import instance from "@/api/axios";


/** 
 * 获取训练集列表
 * @param {*} param 
 * @returns 
 */
async function getTrainingSetList(param) {
    /**
     * 请求接口
     */
    const { status, message, msg } = await instance.post(
        "getTrainingSetList",
        param
    );
    return { status, message, msg };
}




/**
 *  创建训练集
 * @returns
 */
async function createTrainingSet(param) {
    /**
     * 请求接口
     */
    const { status, message, msg } = await instance.post(
        "createTrainingSet",
        param
    );
    return { status, message, msg };
}



/**
 *  修改训练集
 * @returns
 */
async function editTrainingSet(param) {
    /**
     * 请求接口
     */
    const { status, message, msg } = await instance.post(
        "editTrainingSet",
        param
    );
    return { status, message, msg };
}




/** 
 * 删除训练集
 * @param {*} param 
 * @returns 
 */
async function deleteTrainingSet(id) {
    console.log(id);

    /**
     * 请求接口
     */
    const { status, message, msg } = await instance.delete("deleteTrainingSet?id=" + id);
    return { status, message, msg };
}







export default {
    getTrainingSetList,
    createTrainingSet,
    editTrainingSet,
    deleteTrainingSet,
};
